import Vue from 'vue'
import VueRouter from 'vue-router'
import layout from '@/views/layout'
import user from '@/views/user'
import login from '@/views/login'
Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/layout' },
    { path: '/layout', name: 'LayoutPage', component: layout },
    { path: '/user', name: 'UserPage', component: user },
    { path: '/login', name: 'LoginPage', component: login }
  ]
})
export default router
